/*
 *
1234
56.78
hello

 */

#include <iostream>
#include <fstream>
using namespace std;
int main(void){
	int i = 1234;
	double d = 56.78;
	char s[] = "hello";

	ofstream ofs("a.txt");
	ofs << i << " "<< d << " "<<s << endl;
	ofs.close();

	ifstream ifs("a.txt");
	int i2;
	double d2;
	string s2;
	ifs >> i2 >> d2 >> s2;
	cout << i2 << endl;
	cout << d2 << endl;
	cout << s2 << endl;
	return 0;
}
